/**
 * 
 * data是food的对象。包含单位名在内。
 * @param {type} data
 * @returns tr
 */
function showFoodViewDate(data, divID) {
    if (null != data) {
        var str = "";
        for (var i = 0; i < data.length; i++) {
            str = str + tableTR_Date(
                    data[i].food_img
                    , data[i].food_name + "(" + data[i].unit_name + ")"
                    , data[i].food_price
                    , data[i].series_name
                    , data[i].food_id
                    );
        }
        $("#" + divID).html(str);
    }
    function tableTR_Date(img, name, money, series_name, id) {
        var str = "<tr style=\"height:40px\">"
                + "<td><a href=\"#showMyPromotionDayImg\" data-uk-modal onclick=\"showImg('" + img + "')\"><img src=\"" + img + "\" width=\"40px\" height=\"40px\"></a></td>"
                + "<td class=\"uk-text-middle uk-text-center\">" + series_name + "</td>"
                + "<td class=\"uk-text-middle uk-text-center\">" + name + "</td>"
                + "<td class=\"uk-text-middle uk-text-center\">" + money + "</td>"
//                            + "<td class=\"uk-text-middle uk-text-center\" style=\"color:red\">" + pmoney + "</td>"
                + "<td class=\"uk-text-middle\" onclick=\"addFood('" + id + "')\">"
                + "<div class=\"uk-text-middle uk-text-center uk-button-primary\" style=\"width:100%;height:40px;float:left;\">下单</div>"
//                + "<div class=\" uk-text-middle uk-text-center uk-button\" style=\"width:50%;height:40px;float:left;\">暂无收藏</div>"
                + "</td>"
                + "</tr>";
        return str;
    }
}